WPManageNinja\WPOrm\Relation\BelongsToMany B

Total Complexity 87
Dependencies 4
Dependents 2
Total lines 513
Lines of code 318
Logical lines of code 181
Comment lines 0
Methods 43
Properties 6

Methods 43

Method Rating Maintainability Complexity Lines of code
paginate()
S
54 5 18
attachNew()
S
60 5 12
sync()
S
56 4 17
setTimestampsOnAttach()
S
64 4 10
wherePivot()
S
60 3 13
match()
S
62 3 11
withTimestamps()
S
71 3 6
detach()
S
63 3 10
cleanPivotAttributes()
S
63 3 10
formatSyncList()
S
64 3 10
getRelationCountQueryForSelfJoin()
S
58 1 16
createAttachRecord()
S
67 2 8
buildDictionary()
S
67 2 8
attach()
S
71 2 5
hydratePivotRelation()
S
70 2 6
addConstraints()
S
73 2 6
addSelect()
S
68 2 7
getAliasedPivotColumns()
S
66 2 8
first()
S
74 2 4
get()
S
66 2 9
firstOrFail()
S
64 2 9
createAttachRecords()
S
63 2 10
newPivotQuery()
S
68 2 7
withPivot()
S
72 2 5
initRelation()
S
71 2 6
updateExistingPivot()
S
68 2 7
getRelationCountQuery()
S
64 2 9
performJoin()
S
67 2 7
getAttachId()
S
71 2 6
getPivotOtherKeys()
S
66 1 8
__construct()
S
68 1 7
attacher()
S
71 1 5
newPivotStatement()
S
80 1 3
newPivot()
S
70 1 6
newExistingPivot()
S
79 1 3
getResults()
S
81 1 3
orWherePivot()
S
78 1 3
getOtherKey()
S
80 1 3
getForeignKey()
S
80 1 3
addEagerConstraints()
S
79 1 3
setWhere()
S
72 1 5
getRelationCountHash()
S
79 1 3
newPivotStatementForId()
S
79 1 3